improve binding code, and print where we actually bound to