update gantry to v4.0.4