Fix #1

move the blocks to be defined in ruby, which now works in 1.0.3 and with the latest ruby motion!

fix #1