environment implemented as a map now (as opposed to list earlier)