add preload function

close #2
Merge pull request #3 from azu/feature/issues/2

add preload function #2