improved secrets.rb