add macro in build; add RichIntent