making plugin work for more than one intance