cleaned up receiver.rb