added missing $resource