change config to options