add update command and cleanup upgrade command