started work on porting the rest to coffeescript