find messages with constraints
merge