added templating loading