replacing 'require' calls with 'dofile' calls to load lua chunks