the script case (were outputname is not known at this level) was not correctly taken into account