some changes to util script