seprate config api and config core