problem with &&, ||, and switch during retracing
substr1, substr2, regex1 are not working