new support for main modules