metadata as property, fixes #6