improvements in the IO