use path to extract file basename