- updated the comment
- removed the hacky things
- changed to support customized flexHome
- minor fix for supporting custom sdk