standardize router writing