added decode_logs.rb