added more option
code to do hadd automatically