autogenerate metadata