use double expansion API for reliability
Merge pull request #5 from raypeng/master

use double expansion API for reliability