better log and caps handling