replace require() with .try_require()