adding support for long files