use simpler API for config