add globral REST data method. fixes #4