bug fix: save .bin file