update to use methods for setting object_type and object_id