detect mac changes