closes #863