version 2 of PTme with changes from Mary