make str/binary part for with 2 and 3
make edsig work with 2 and 3