runtime can now handle arbitrary number of environment objects