feature: update metadata.rb and use the environment param in execute calls