added Config parsing/validation.