closes #992