add demo for mc_xxx functions