mod: refactory init-cxx for once initialize