sessions added successfully, need to refactor to improve the way horse globals are handled though.
cleaned up code a bit, didn't use globals, sessions still work