relay: fix up mentioning & reformat code