copy code from freemind-flash