added a working version of the update command
fixed uploads