synced with oscam-emu