document then device ready