fix some loading issues and add connect to test with