impliment update subcommand