added exit option
added exit option