fixed put for binary files