add accessor to specify returned type (nucleotide or protein)