modified require to load files