closes #768