added query-string input API