script for multi merge
test updated with logs
depth method