updating before each install