refactor & query parameters support template prase