random sequence generation; delay modulation crash fix