added missing parameter detect_replication_lag
started a chapter on writing modules ...