upgraded to rust 0.12 nightly and got code working