re-sync MainFrm.cpp