throw when illegal
Merge pull request #58 from wilmoore/throw-on-illegal

throw when illegal