properly call main()