modified the resource command.