corrected calls to session functions for real