some template work. it doesn't work yet but arash was insistent