resolve TODO: support config file