workaround for potential bug in subscibeSink (AISLIB-25) (manually handle header and footer)