so this is where those bloody extra newlines are coming from