min
rebased on metadata, improved docs