add suport for block replacement for custom block types