added 1 sec timeout