filter and proxy logic