small tweaks in example 4
environment dict