added basic logging facility and cron functionality