add logrotate support