added a new hook, related to issue #111