implement check for path in root dir