using kwargs instead of named arguments, adding response format parameter