Added extra check before adding config, aded default job template