this could be written more cleanly as:

```js
exec(cmd, {maxBuffer: 524288}, cb);
```