added running as a service instead of cronjob
added running as a service instead of cronjob