modified submlodules init and deinit script