added flag for activating directional penalty