improve debugging by using named function
testling still seems to be having some problems with setTimeout..