finished initial debug, still has problems that need to be fixed