added extra file regex protections