very ugly jsPlumb :S
merge