added bool parameter to allow import of objects as groups