fix index error for line check
add include paths support