exitPoints working TODO: copy routine for release