redirection function implemented
added output filter context structure and init/retrieval function