got it working with max and add but having trouble with pong
it isn't finding the old value in the ouput any more