refuctoring ccbMake.rb