add 'source' field to output