progress on debugging this mofo