cleanup wasm code