monitor detection