bind rewrite

Clearer signature and no dependencies.
Merge pull request #7 from pirfalt/bind

bind rewrite