make global option work