Opt
fix device monitor bugs
fix device bugs