get sessions working in dev and prod