fixed binding bugs, added deep_binding method