closes #978