add stubs for tests
fix up connect