moving globals to top of template breaks some if/else blocks
0.3.18