command processor working for q and quit