closes #1243