mod; use constructor for connect