v1.2 (added read_metadata method)