cleaned up ConfigFile/global code for cleaner gcc compilation