QB emulator framework