added hooks for SwitchLive and SetFolderPermisions