closes #862