Revert "mainBeg"

This reverts commit ba6bfcbe8c4e1072f3c1bf04ad4581b51c7f7fce.