fix build and remove some debug instructions