handle quitting
have a history variable