change real, try to add support for emscripten