removed unused code and fix internet test file