First rework working pdt0
Rework + add first attempt pdt8 support.