fix stdin, and multi-alleles