a small improvement to the agent cronjob