add session functions