change template logic to FileSystem based