add partition detector