support config file (yaml)