logger config at top
fix configBase, listener and consumer shoul be declared at the top
fix test, exception when not a valid cert