move require into function scope
readying 2.9.1