changing hook to install plugins