closes #782