fixed ivs, added txt generator