add envs from metadata to config