adding templateid to dist