initial attempt at using Dots.
work in progress for #161