fixed listBy method, added IN() support