MOD: some modify for flow.js