Binding Off in K2P2 Rib

when i bind off, i knit the stitches in pattern, but i wind up with a cast off edge that is kind of curly and ruffle-y

when i am binding off the purl stitches, i keep the yarn in front of the work - could this be the problem?

what am i doing wrong?

That’s kinda normal for binding off in rib. If the edge doesnt need to be extra stretchy, you can bind off in knit…after all, you didnt CAST ON in rib!