make the quit work correctly now