added utils for io operation