use native methods when possible
Merge pull request #2 from yields/master

use native methods when possible.