changed mqtt client form async to sync - now working