broke up massive draw-pathway script into multiple smaller ones