added getEnvironments call