use mole UTIL_IOSTAT firstly