migrating to query strings