generates instance ids if requested