minor changes, added CLI support for cron