update main.cpp with new version from web