fixing prefixMatch for RPI (trying again)