fixes absoluteDirectoryPath and called functions