example group: register global hooks before individual config

fixes #632