half migrate Connection class to mop