renamed _main to main_std