add cid support
Merge pull request #9 from Papiel/cid

add cid support