closes #1142