reworked module and config interface

added baseconfigpath so there can be more configes for the same modul
reworked modules to use common helper code instead of duplicating
work