fixes for binary files