moved parsing of memcached locations to a better place