mqtt-client big batch of fixes - now it works