updating code for devlist checking