fix to get sessions with new implementation