make config globals and remove from init