change API to pass Arrays to callbacks
v0.0.2