chimeras detection, some refactoring