implement biased relay
fixup after simulation testing