changed to read query params