do not pass envs around. amb is still broken though.