closes #780