generate connection interface