add writing binary file