fix configBase, listener and consumer shoul be declared at the top