sanity check must precede any calls to require()

...apart from require('fs'), of course