working on global scripts