please check using path.basename