unified newlines in main.cpp