refactor sessions but still using memory store