closes #13, hopefully correctly.