add opts: read, yaml, stat, key