logrotate and bugfixes