move require to the top of file