added ctx to session