added sessions controller, other minor changes