move getStats to adapter.js

check for unknown here too