bind should handle member functions