switched implementation to be more like how we do mongo sessions