implementing beer gauge event hook
merging upstream