fix creation of Strophe Connection object and rebuild