user ref group & fix bugs