some sanity checks
Merge pull request #1 from xLink/patch-1

some sanity checks