improved update(added aor support) clean(returned to cron) functions.