flip flops were not using tgates, added that in
"re jig" rest_length_factor when getting a negative or failed measurement