setting 1sec timeout