propagate error code
merge