add possibity to run as crontab