add alternative line endings to cleanup function