better metadata output