use config.json insteah of hard-coded