Added unique name to connector fragments and pass basdir to connector