added did_assign_new_instance callback and renamed did_assign_instance to did_assign_existing_instance