trying handler for multiple queries