add API for retrieveFilter