added local context in sub filters