refactored cloud.rb to cpi.rb & zone.rb