cleaned up processor.rb