old code in user_sessions.js needed updating