replaced jem by main, ref #456