enhanced main execution