add connect and disconnect client methods