make filesink handle events only in the chainfunction