Add script for cron
:bug: fix minor bugs