made script bleaching/allowing an environment-based flag