bring back trim_trailing_whitespace and insert_final_newline support
end_of_line support
possible NPE fix