updates to get the session length working correctly