edited global vars and d config