handle unrecognized input in main loop