closes #762