refactoring crontab stuff to make it independently invocable