closes #876