added support for file with paths