better sample metadata when building from disk