inSyncRequire to avoid some cycle breaking until the end, and put mail-app at end of build layer