closes #1068