setup emulator updated with extra -n option