fix some error on windows
add some util
add some util
add some util
add some util