this closes #46