prevent empty lines from causing a timeout