removed old code, implementing wget