add type check
Merge pull request #2 from birdhackor/dev

add type check