improve pairlist detectiong