added a condition in the find method to handle http 500 requests. Also, ...

...the  value needed to be passed to the addListener callback.