configure hooks