improve cronservice.sh