small rewrite of timeout