improved API for Objects class