important functions for PatchAddons