R&D for an advanced optical inspection system