add support for persistent_id and persisted
Merge pull request #1 from zlx/feature/support_persistent

add support for persistent_id and persisted