adding method to retrieve all the device blocks