switch add_object params to allow default values. also scan_objects