adding a plugin call!  most of the rest of this chunk is minor changes