added support for more real _pre_replicate