replaced exitMap() and exitList() with single exit() command for ease-of-use