move getStats to adapter.js

But if the format changes then this will poll forever.