adding checking for null config values