mods to conversion script
newline and space support