detection framework