relay: fix build and / raw commands