easier to customize connection class