make sure timeout behaves the same even without tty to lower cpu usage