resolve #11 change template loading mechanism