detection migrated to x.js and now automatic