check and create devices