fixed preexecute command for automated update.