calibrate and runtime patches