Intermediate Upload

this code is a mess.
I need to create a plan before doing all this crap first.