Use rubber or foam closure strips for any overlaps. Get some that match the shape and color of your roof. These prevent water damage. You also have the option of attaching rubber strips for plumbing vents. Once finished, attach the ridge cap. This gives the roof closure and prevents leaking. You can also use a mesh to create a ridge vent that allows airflow.