Some golang io fixes