added some methods inspired from python-crontab