add an option for merging fields in library and merging allocations in library, NOT done yet