more robust bind
Merge pull request #553 from luvit/fixes/bind

more robust bind