add config support