added newline ans rstrip fixes