improve hydra mode config