add disconnect method