before filter & clean routes