modify init_crmsh and add gateway