moved load config to Main.pm and export variables to NetClient