add more sanity checks and convert the Trues and Falses before
connecting the latches