make logging settable by environment variable add editting keys create editting control make per-control paint