removes router switch statement
comment match pattern generation