fix warnings in reference API
add support for separate specification of query params