update README and tolerate more types