Working on root export with support for optical photons