* added the filter with default options * implement #38 on #72 for api-definitions * added fallback logic for production