updated hep for new cfg_file behavior. added -d