closes #891