closes #1182