closes #1273