all the changes in this file should be a separate commit. I like this change but it is not related to the changes to in $resource