refactored - use 'inari' or 'emulator' on 5, 6, 7, 8 scripts