closes #779