closes #874