v 0.5.8 r2

add global var exception in template