add load config support