simplify "bind" and "unbind"