add assertions and mixins