add cron-like periodic invocation of custom functions