add template cache and custom build