added connect at top level so test-app works