template functions imports fix's