added exception handling for when undefined/null values are returned from pools api
testing
added exception handling for null values returned