a lot of ajax functions and cron functions. I lost track after a while