update: refactor the text adapter for loading the config