improved filter behavior and removed archive filtering if not 'LATEST'