fixing linebreaks, fixing url parsing, a few other issues