introduce object-oriented config-style (forgot to commit this file in some previous commit)