fix bug with return values in local operations
fix bug parsing args to incremnt
compensate for how browserify sometimes calls back multiple times