add precedence tests remove dead code from router gen make more strides towards using writers in router gen optimise dump request