added the exit option