changed from memcache to session write