working fte primitive that complies under emscripten