load metadata from file