this closes #47