refine message, add match function