added handling for responses that are booleans