copy keys into bin file