add param annotations to templates