refactoring less on file protocol