add caching decorators and templates