move getStats to adapter.js

No I think this is fine, we'd retry it here.