protect hydra when require is used