using new method for timeout in waitfor