adding the paths to the exception
adding better memcache check