implement merging in from stubs