now handle embed custom helper function, and refine some comments