added some utilities for emscripten testing