changed how quitting is handled. added stub of justification loop.