path check for arg path and TODO