refine log, add features for macro. 0.9.212