added binary file putting/getting