pass options to merge_window instead of ref