added hooks setup