optimized builder not to depend on prime-util/mixin