fixed bug with relative filepaths