im2reg works if the file length starts as zero. Crazy kernel problems if I try to write more. It's a mess