added validity checks for config values