applying necessary patches to plugins-directory