new api function and related global variable for setting either sequential or synchronized simulation mode