bugfix to help styled dables work more smoothly

the first few tests, just getting some basics worked out
and minor refactoring to ease unit testing