add some error handling to build-frac-words mixin