option for adding a function to call when flood is registered