added to yarp write completition a single history file for each different port