map records through the decoder

they were being passed as an array
Merge pull request #1 from robertjd/master

map records through the decoder