WIP: yay, upload working. ugly hacks