0.2.1: better input validation, simpler quitting