add merge function that takes file paths rather than buffer/stream