parse options, look for config file