separated template global vars and tune vars