relay: change the way command parsing is done
relay: add tests