updated upload class