slight modification to ignore cluster code when no replication is required