fix prototype for filter and get 

the issue is that complex filtering with Q does not work.
This fix the issue