merging and linking works now