twip: make headerfunction public for usage in filters