handle types when modifying device properties