not quite complete, but made progres on debugging