attempting to use $resource