move crontab entry parsing to separate function