updating wrapper connection