This bit me just now: if (-1 < somearray.length) { } Ouch. Took me a while to figure out that that bit of code was the problem. Is there some way to make these kind of bugs less likely or easier to find? --bb