added combine template function
main package rename