fix tpl class, edit mtime, timestamp helper