better support for REST outside an app