setting global and local configuration