add new features: readonly switch set in config.json.