added support for binary files