added support for using an existing qbs connection