avoid generting unneeded API objects in client libs