multiple instances in m4l

Please forgive me if this has already been addressed, a short search revealed nothing though it seems like a fairly common question… Anyway,

I am creating a waveshaping distortion M4L audio effect using wave~ with a function to draw into a buffer, and having a few problems:

First, when multiple instances are introduced within the same song, a change in one buffer results in a change in the other. I thought the prefixes — or #0 were used to get around this but I’m having no luck there.

Second, the settings are not being saved correctly either. I’ve set up pattr objects for each object whose setting I want to recall, as well as a general pattrstorage for the patch, and I’ve tried to name these as well with — or #0 to no avail.