worked on main loop, just need an exit stratigy