fixing type
destinations creates a destination object for each destination
write destination content to a file