bug fixes related to issue #17; responses for query methods fixed;