query platform before device