add a task for checking C-method arities
move routing into on_header_complete