DEBUG: updated filter to run in footer