plugin optimization and clean loggs