add access on HMC and many bugs