add a conversion script from d to delight
add loops test keeping index