add more type safety
Merge pull request #255 from ged-lab/moar-type-safety

add more type safety