made the custom template loader one-shot itself