refactor to use zotrack instead of track info
refactored session management