client: fix RangeError: Maximum call stack size exceeded

closes #147 

not sure what's going on with 0.8. can't get master to pass locally. just keep getting 2s timeouts