getconfig func will now generate config if its missing.