removed old upload code