refactored the dependecy of the filesystem out of the project