`main_wrapper` (it is the same as above :D)