add custom-level polygon merging