made automatic clearing of input more sane