change some fromBinaryData => fromJSon