add guessType support
Merge pull request #12 from kyriosli/master

add guessType support