closes #767