use ConfigInterface for type hinting