fix renaming Main in namespace
merged @mandel59 pull request