added path check