I'm using restler (<https://github.com/danwrong/restler>) to make api calls from an external source. In Sailsjs, from what I understand, helper functions are called services. I put the restler code for get, post, etc in their own services so I wouldn't repeat myself with the same code over and over again. However, the restler functions that worked fine in my controller no longer worked in the service. For instance:

```
//api/services/myService.js
module.export{
        httpGet: function(){
        var rest = require('restler');
        rest.get('http://google.com').on('complete', function(result) {
        if (result instanceof Error) {
            console.log('Error:', result.message);
            this.retry(5000); // try again after 5 sec
        } else {
            console.log(result);
        }
        });

    }

}

```

I know my service is being used correctly; I've tried returning a variable from the service to double check:

```
        httpGet: function(){
        var check = null;
        var rest = require('restler');
        rest.get('http://google.com').on('complete', function(result) {
        if (result instanceof Error) {
            check = false;
            console.log('Error:', result.message);
            this.retry(5000); // try again after 5 sec
        } else {
            console.log(result);
            check = true;
        }
        });
        return check;
        //in the controller,  myService.httpGet() returns null, not true or false
    }

```

Any help would be very appreciated. Salisjs v0.12.4