fixed quit so it didn't quit on next invocation