wip on relay logic. tests pending.