added custom template loader