closes #771