add development and production switch for local editing