separate raw fmt funtions to  mod