tpl as singe file and sup other res
change style and each cmd has better form