yet another attempt at creating a pm tree