added bridge for setDelegate