ref #42 work in progress