added -modapi argument to enable initialization of the modAPI