added debug statements to ar_latch, which seems to be broken