make use of arbitrary key-value pairs for env and grid