implementing sessions creation