got rid of bytestring where text is possible