added support for cached compile, variables and import directories