fix config and HG