fix errors & write args  & move calised as systemd daemon