fixes #116
closes #117, test passed