changed require to before to avoid errors on other os versions