add route-message fn