DIC tools

first version based on Armand's code