cleanup of unecessary code

-we shouldn't be loading config file multiple times.