add a proper main to relay file