fixing deprecated require call