should handle bad input now