closes #1192