added mag reed switch getting