set connection on checkout