improving module
fixing access to session
trying to improve loading of embedded modules