switched from angular-resource to Restangular