implemented block building replication stuff