check returned value from metadata request Fixes #154