reject trailing garbage. Closes #1