added external file dependency support to resource cacher