cleaned up and added 'exitTo' functionality