templates caching
path validation
small renaming