closes #1198