fixing  call to work with config better, adding test to query string