converted to pogo 0.8
changed argument passing