write_cmd
resolving conflict, write_cmd