exit seems to be functioning