make fields of Config private, create builder method for Config