move require to top of file