support cb method connect and get