cleanup and whitespace mode