closes #764