minor changes on api filtering