migrated to Char, js errors around x6