cleanup newline and stuff