prepare a bin file