try refactory ro_global
refactory ro_global but cannot pass specs