vertical exit refactoring, ready for stairs