refactor update process. Now only available with command line