[refactor] rename filename -> basename in Metadata