almost done debuggin