add trebuchet patch
remaining things for trebuchet
one more thing
Merge pull request #5 from gandhar/master

trebuchet port
Thanks for your work!