getting sessions working