fixed major oops in timeout(should be millisecs!)
removed useless debug