added recursive hadd script