made sure program doesn't crash if timeout is not set