work with binary file