moved the routine to util
scripted update of code from master at 389a190 moved the routine to util