closes #775