saving and refreshing local and global parameters