add session and some stuff