add buildpatch
add Loader for templates