got it working from session data