move pool to a global rather than having it on a per-template basis, yeesshhh...that was bad