Almost everything works
skimmed down version of the debug tool