adding some checks for config.json meltmedia/whyaz#4