my latest version, with attempts to fetch additional metadata (and dubiously hard-coded configuration)