use template path in lib