flag adjustments and quest improvements