add ability to get just metadata, and related unit tests