modify connection methods.
modify connection methods.