added exit and setup.