added alternative to session