add preferences to mqtt client