add critical.rb, update cookbook.rb