fixing upload stuff to work