revert changes
only connect share hooks if installation OC is installed