add reasonable timeout default and dont read from stdin