add support for -l and -e, logrotation