add TODO related to getQueryParams