using __dirname for config file