running pre template in separate ctx