closes #772