closes #763