cleanup: remove mmapping code from main()