add path checker method