closes #879