build the fse emulator outside the try-catch