add calibrate and fix json