consolidated syntax, better handling of malformed responses