closes #976