change template loading strategy