submodule: extract functions for config set and lookup