added memcache and flags to run in dev mode