move to lib templates