add/fix some fileutil