added -t for timeout