added passwd to hooks