implement helper dispatch for emscripten