[IMP] cron functions converted to new api