move find_sequences to Subfunctions.
output to YAML