give scanner a timeout