updated init and uninit scripts