closes #770