separated memcache and graph drawing scripts