Fix it
Merge branch 'master' of github.com:jameszhan/rhea
optimize the legacy codes.