wip: proof of concept document.register + mixins