read the C headers to write the relays