Closed issue #3
closed #4, closed #2, implemented preferences for protected and not protected broker