rewrote in python
mode +x
use network name in domain