hack template library so it can load vars and also parse