just a wee bit of code cleaning
importing most of PTM tables