working with terrence_s stolen code - passporthelper, sessions etc