closes #1176