add self method dataprovider support
Merge pull request #5 from nwlunatic/dataprovider

add self method dataprovider support